package com.ganmiao.server.sys.query;

import com.ganmiao.req.BaseQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 用户角色信息查询参数
 */
@ApiModel("用户角色信息查询参数")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysUserRoleQuery extends BaseQuery {

    /**
     * 查询类型 (已关联:exist 未关联:notExist 默认为已关联)
     */
    @ApiModelProperty("查询类型 (已关联:exist 未关联:notExist 默认为已关联)")
    private String selectType = "exist";

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty("角色ID")
    private Integer roleId;

    /**
     * 供应商ID
     */
    @ApiModelProperty(hidden = true)
    private Integer supplierId;

    /**
     * 商超ID
     */
    @ApiModelProperty(hidden = true)
    private Integer shopId;

    /**
     * 用户名称
     */
    @ApiModelProperty("用户名称")
    private String userName;

    /**
     * 系统编码 (supplier:供应商 purchase:采购 portal:门户 mall:商城)
     */
    @ApiModelProperty("系统编码 (supplier:供应商 purchase:采购 portal:门户 mall:商城)")
    private String sysCode;

}
